program automatic test(pkt_if_pack bus);
  
  string    tc_name;
  base_test tc;

	initial begin
		$printtimescale;
		$timeformat(-9, 3, "..ns..", 6);
	end
	
	initial begin
    if(!$value$plusargs("tc_name=%s", tc_name)) $error("no tc_name!");
    else $display("tc name = %0s", tc_name);
    if(tc_name.compare("base_test"))
      tc = sanity_case::new(bus);
    else if(tc_name.compare("sanity_case"))
      tc = sanity_case::new(bus);
		
    tc.build();
		tc.run();
    
		$display("At %0t, [TESt NOTE]: simulation finish~~~~~~~~~~~~~~~~~~", $time);
		$finish;
	end	

endprogram
